<?php

class FrmInformation {
    private $divInfo;
    private $message;
    private $messageText;//Contenido del mensaje
    private $inputClock;
    private $table;
    
    public function __construct() {
        $this->messageText="-engineer+ v 0.0.1 / comunidad de software libre Arca-csl-";
        $this->divInfo=new Div($name="divInfo", $id="divInfo", $class="info", $events=array(),$height="",$width="",$top="",$left="", $visibility="");
            $this->message=new Text($text=$this->messageText, $effect="", $class="");
            $this->inputClock=new input($name="clock", $id="clock", $value="-:-:-", $readOnly="readonly", $size="", $maxLength="", $class="clock", $disabled="", $tabIndex="", $events=array());
            $this->table=new Table($cellPadding="0", $cellSpacing="0", $border="0", $class="information", $events=array());
            
    }
    public function setVisible($visible=TRUE){
        if($visible==TRUE){
            $this->divInfo->start();
                $this->table->start();
                        $this->table->startTr();
                            $this->table->setTdClass("info");
                            $this->table->startTd();
                                $this->message->show();
                            $this->table->endTd();
                            
                            $this->table->setTdClass("clock");
                            $this->table->startTd();
                                $this->inputClock->show();
                            $this->table->endTd();
                         $this->table->endTr();
                $this->table->end();
            $this->divInfo->end();
        }
    }
    public function getMessageText() {
        return $this->messageText;
    }

    public function setMessageText($messageText) {
        $this->messageText = $messageText;
        $this->message->setText($messageText);
    }




    
}

?>
